package com.iiapk.gridview;

import android.app.Activity;
import android.util.DisplayMetrics;

public class Constant{
	
	public static int screenHeight;
	public static int screenWidth;
	public static float screenDensity;
	
	public static void init(Activity context){
		DisplayMetrics dm = new DisplayMetrics();
		context.getWindowManager().getDefaultDisplay().getMetrics(dm);
		screenDensity = dm.density;
		screenHeight = dm.heightPixels;
		screenWidth = dm.widthPixels;
	}

}
